/*******************************************************************
 *
 * Copyright (C), 2021-2022, LS, All rights reserved.
 *
 * Author      : 
 * Create Time : 2021-09-17
 * Version     : v0.1
 * Description : 
 *******************************************************************/

#ifndef _OSAL_BLE_H_
#define _OSAL_BLE_H_

#include "ll.h"
#include "gap.h"
#include "types.h"
#include "bcomdef.h"
#include "peripheral.h"

/*********************************************************************
    INCLUDES
*/

/*********************************************************************
    CONSTANTS
*/


/** Wrist Task Events**/
//start
#define START_DEVICE_EVT                        0x0001
#define APP_BLE_RESEND_EVT                      0x0002
#define APP_BLE_DELAY_UP_BATT                   0x0004
#define APP_BLE_RESET_ADV_EVT                   0x0008  //for adv reset
#define APP_BLE_DELAY_SEND_EVT                  0x0010

/*********************************************************************
    MACROS
*/

/*********************************************************************
    FUNCTIONS
*/

extern uint8 osalBle_TaskID;
extern gaprole_States_t gapProfileState;

/*
    Task Initialization for the BLE Application
*/
extern void osalBleInit(uint8 task_id);

/*
    Task Event Processor for the BLE Application
*/
extern uint16 osalBleProcEvt( uint8 task_id, uint16 events );

/*********************************************************************
*********************************************************************/


#endif /* _OSAL_BLE_H_ */
